# Maintainer: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=gnuchess
pkgver=6.2.9
pkgrel=3
pkgdesc="Play chess against the computer on a terminal and an engine for graphical chess frontends"
arch=('loong64' 'x86_64')
url="https://www.gnu.org/software/chess/chess.html"
license=('GPL3')
depends=('bash')
optdepends=('xboard: graphical frontend')
source=(https://ftp.gnu.org/pub/gnu/chess/$pkgname-$pkgver.tar.gz
        https://ftp.gnu.org/pub/gnu/chess/$pkgname-$pkgver.tar.gz.sig)
validpgpkeys=('34319C9B50B8D2176F5556C543AC7FF93CED5A6B')
md5sums=('ede9af6cf29eea31179a737a21b9d1bc'
         'SKIP')
sha256sums=('ddfcc20bdd756900a9ab6c42c7daf90a2893bf7f19ce347420ce36baebc41890'
            'SKIP')

build() {
  cd $pkgname-$pkgver

  ./configure --prefix=/usr

  make  
}

package() {
  cd $pkgname-$pkgver

  make prefix="$pkgdir"/usr install
}
